<<<<<<< HEAD:main.py
from src.middleware.request_timer import RequestTimeMiddleware
=======
from fastapi import FastAPI

from conf.database import Base,engine

Base.metadata.create_all(bind=engine)
>>>>>>> fastapisql:src/routers/user.py

app = FastAPI()

# 添加中间件
app.middleware(RequestTimeMiddleware)

# 示例路由
@app.get("/ping")
async def ping():
    return {"message": "pong"}